<?
require_once "../conn.php";

if(isset($s1))
{
	if(!empty($uname1) && !empty($upass1))
	{
		$sql = "SELECT * FROM job_seeker_info WHERE uname = '$uname1' AND upass = '$upass1'";
		$result = mysql_query($sql);

		if(mysql_num_rows($result) == "1")
		{
			$a = mysql_fetch_array($result);

			$_SESSION[uname] = $uname1;

			header("location:JobSearch.php");
			exit();
		}

	}
}

include_once "../main.php";
?>

<center>
  <br><br>
  <span class=HeaderClass>JobSeekers  Login  </span>
  <p class=BlackLink>You must log in to access this area of the site.<br> If you are
     not a registered user, <a href="jobseeker_registration.php" class=TNA>click here</a> to sign up.</p>

  <p>
  
  <form name=jsl method="post" action="login.php">
<table align=center cellpadding="0" cellspacing="5" class=BlackText>
<tr>
	<td align=left>Username:</td>
	<td align="right"> <input type="text" name="uname1" size="12" maxlength=10 style="width:120px"></td>
</tr>

<tr>
	<td align=left>Password:</td>
	<td align="right"><input type="password" name="upass1" size="12" maxlength=10 style="width:120px"></td>
</tr>

<tr>
	<td>&nbsp;</td>
	<td align="right">
		<input type=hidden name=job_id value=<?=$_GET[job_id]?>>
		<input type="submit" name=s1 value=" Login " style="font-family:verdana; font-weight:bold; color:#993300; background-color:white">	</td>
</tr>

<tr><td colspan=2 align=left> <a class=TNA href=forgot.php> Forgot your username/password? </a></td>
</tr>

</table>
  </form></p>
  </center>

<?	include_once("../footer.php"); ?>




